#include "EpollServer.hpp"
#include <string>

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "usage: " << argv[0] << " " << "port";
        exit(1);
    }
    u_int16_t localport = std::stoi(argv[1]);
    std::unique_ptr<EpollSever> epollserver = std::make_unique<EpollSever>(localport);
    epollserver->Init();
    epollserver->Start();
    return 0;
}